package cn.wolfcode.car.domain;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Business {
    private Long id;

    private String name;

    private String intro;

    private String scope;

    private String tel;

    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date openDate;

    private String licenseImg;

    private String licenseNumber;

    private String legalName;

    private String legalTel;

    private String legalIdcard;

    private Boolean mainStore;

    public String getMainStoreName() {
        return this.mainStore == true ? "总店" : "分店";
    }
}